/*
 * @author WYK
 * 各模块的接口调用
 * WebSocket
 */

// URL列表
import base from '@/api/base';
// 封装过的axios实例
import ajax from '@/api/http.js';
// QS  序列化参数
import qs from 'qs';

// const host = base.dev
const host = base.ws;

const ws = {
  getWsUrl(id) {
    return `${host}/ws?id=${id}`;
  },

  getWsUrlForLocation() {
    return `${hostForLocation}`;
  }
};

export default ws;
